/**
 * @author xxx
 * @time 2022-04-21 14PM
 * @description 定义分类接口
 */
import Ajax from './Ajax'

// 地区列表接口
function cityApi() {
    return Ajax({
        url: '/city/list',
        method: 'GET'
    })
}

//电影分类接口 
function movieApi() {
    return Ajax({
        url: '/movie/types',
        method: 'GET'
    })
}

// 周边分类接口
function aroundApi() {
    return Ajax({
        url: '/around/types',
        method: 'GET'
    })
}

/**
 * 获取展览列表接口
 * @param {{page: number, size: number, city: string, name: string}} params 
 * @returns 
 */
 function showListApi(params) {
    return Ajax({
        url: '/show/list',
        method: 'GET',
        params
    })
}

/**
 * 获取电影列表接口
 * @param {{page: number, size: number, cat: string, name: string}} params 
 * @returns 
 */
function movieListApi(params) {
    return Ajax({
        url: '/movie/list',
        method: 'GET',
        params
    })
}

/**
 * 获取周边列表接口
 * @param {{page: number, size: number, ipRightName: string, name: string}} params 
 * @returns 
 */
function aroundListApi(params) {
    return Ajax({
        url: '/around/list',
        method: 'GET',
        params
    })
}

/**
 *  演出详情列表接口
 */
 export function getDetailHotListApi(id) {
    return Ajax({
        url: `/show/detail/${id}`,
        method: 'GET',
    })
}
/**
 *  电影详情列表接口
 */
export function getDetailListApi(id) {
    return Ajax({
        url: `/movie/detail/${id}`,
        method: 'GET',
    })
}

/**
 *  周边详情列表接口
 */
 export function geAroundListApi(id) {
    return Ajax({
        url: `/around/detail/${id}`,
        method: 'GET',
    })
}

export {
    aroundApi,
    movieApi,
    cityApi,
    showListApi,
    movieListApi,
    aroundListApi,
}